<div id="index_race" class="index">
<h2><?php __('Races');?></h2>
<p><?php echo $paginator->counter(array('format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)));?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('Name', 'LocalizedString'.$locale);?></th>
	<th><?php echo $paginator->sort('Reroll Price', 'Race.iRerollPrice');?></th>
	<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($races as $race):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
<tr<?php echo $class;?>>
	<td><?php echo $race['LocalizedString'][$locale]; ?></td>
	<td><?php echo $race['Race']['iRerollPrice']; ?></td>
	<td class="actions">
		<?php echo $html->link(__('View', true), array('action' => 'view', $race['Race']['id'])); ?>
	</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>